package com.atguigu.educms.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文章评论
 * </p>
 *
 * @author Panghl
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CmsComment对象", description="文章评论")
public class CmsComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增id 主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "文章id")
    private Integer contentId;

    @ApiModelProperty(value = "会员id")
    private String cmsMemberId;

    @ApiModelProperty(value = "会员名称")
    private String cmsNickname;

    @ApiModelProperty(value = "会员头像")
    private String cmsAvatar;

    @ApiModelProperty(value = "文章评论信息")
    private String comment;

    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "备注")
    private String remark;


}
